<?php

require_once 'init.php';
require_once cf\Config::path.'api/page.php';

$page = cf\api\page\get('references');
$smarty->assign('pageText',cf\api\page\getText($page['id']));

$smarty->assign(
	'references',
	cf\query2arrays("
		SELECT short_txt AS author, txt AS text, icon AS signature 
		FROM cf_page 
		WHERE (hidden IS NULL OR hidden=0) AND parent_id=:id
		ORDER BY sort_order ASC",
		array('id'=>$page['id'])
	)
);

show(
   'references', 
   $page['name'], 
   array(), 				//Pages::getPath($page->id())
   $page['title'], 
   $page['keywords'], 
   $page['descr']
);

?>